
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import oRisJava;

public class HelloWorld extends JButton
{
public HelloWorld(String title)
  {
  super(title);
  addMouseListener(new MouseAdapter()
    {
    public void mousePressed(MouseEvent me)
      {
      onClick();
      }
    });
  }
public void onClick()
  {
  oRisJava.println(
  oRisJava.eval("GlobalBrowser execute"+
                 "{"+
                 "GlobalBrowser b=new GlobalBrowser;"+
                 "b->show();"+
                 "return(b);"+
                 "}"));
  }
}

